package com.a2.appa3.global;

import android.app.Application;
import android.content.Context;

import com.uuzuche.lib_zxing.activity.ZXingLibrary;
import com.a2.appa3.model.network.entity.req.ResURL;

import java.io.File;

/**
 * Created by Administrator on 2017/8/4.
 * Application
 */

public class App extends Application {
    public static File cacheDir;
    public static ResURL bean;
    public static String adress;
    private static Context globalApplicationContext;//全局ApplicationContext

    @Override
    public void onCreate() {
        super.onCreate();
        ZXingLibrary.initDisplayOpinion(this);
        if (false) {
//            LeakCanary.install(this);
        }
        cacheDir = getCacheDir();
    }

    public static Context getContext() {
        return globalApplicationContext;
    }
}
